package com.futureweaver.service.impl;

import com.futureweaver.domain.CheckRequest;
import com.futureweaver.mapper.CheckRequestMapper;
import com.futureweaver.service.CheckRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CheckRequestServiceImpl implements CheckRequestService {
    @Autowired
    private CheckRequestMapper mapper;

    @Override
    public boolean add(CheckRequest checkRequest) {
        return mapper.insert(checkRequest) == 1;
    }

    @Override
    public boolean update(CheckRequest checkRequest) {
        return mapper.update(checkRequest) == 1;
    }

    @Override
    public List<CheckRequest> query(Map<String, Object> vo) {
        List<CheckRequest> result = mapper.query(vo);

        return result;
    }
}
